﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DB_NH.DB_Model.ywxt
{
    /// <summary>
    /// 审批邮件发送记录
    /// </summary>
    [Serializable]
    public class wf_maillist_send
    {
        #region 数据表名称
        public static readonly string TableName = "wf_maillist_send";
        #endregion

        #region 数据表字段结构
        public struct Columns
        {
            /// <summary>
            /// 邮件id
            /// </summary>
            public static readonly string id = @"id";

            /// <summary>
            /// 收件人
            /// </summary>
            public static readonly string to_user = @"to_user";

            /// <summary>
            /// 邮件标题
            /// </summary>
            public static readonly string mail_title = @"mail_title";

            /// <summary>
            /// 邮件正文
            /// </summary>
            public static readonly string mail_body = @"mail_body";

            /// <summary>
            /// 邮件发送时间
            /// </summary>
            public static readonly string mail_date = @"mail_date";

            /// <summary>
            /// 邮件计划发送时间
            /// </summary>
            public static readonly string mail_date_plan = @"mail_date_plan";

            /// <summary>
            /// 邮件实际发送时间
            /// </summary>
            public static readonly string mail_date_sended = @"mail_date_sended";

            /// <summary>
            /// 邮件处理标志
            /// </summary>
            public static readonly string mail_doflag = @"mail_doflag";

            /// <summary>
            /// 抄送用户
            /// </summary>
            public static readonly string to_user_cc = @"to_user_cc";

            /// <summary>
            /// 是否有效标志
            /// </summary>
            public static readonly string is_valid = @"is_valid";

            /// <summary>
            /// 创建时间
            /// </summary>
            public static readonly string create_date = @"create_date";


            /// <summary>
            /// 用户所属部门ID
            /// </summary>
            public static readonly string dept_id = @"dept_id";
        }
        #endregion

        #region 字段
        /// <summary>
        /// 邮件ID
        /// </summary>
        public virtual string id { get; set; }

        /// <summary>
        /// 收件人
        /// </summary>
        public virtual string to_user { get; set; }

        /// <summary>
        /// 邮件标题
        /// </summary>
        public virtual string mail_title { get; set; }

        /// <summary>
        /// 邮件正文
        /// </summary>
        public virtual string mail_body { get; set; }

        /// <summary>
        /// 邮件发送时间
        /// </summary>
        public virtual string mail_date { get; set; }

        /// <summary>
        /// 邮件计划发送时间
        /// </summary>
        public virtual DateTime mail_date_plan { get; set; }

        /// <summary>
        /// 邮件实际发送时间
        /// </summary>
        public virtual DateTime mail_date_sended { get; set; }

        /// <summary>
        /// 邮件处理标志
        /// </summary>
        public virtual int mail_doflag { get; set; }

        /// <summary>
        /// 抄送用户
        /// </summary>
        public virtual string to_user_cc { get; set; }

        /// <summary>
        /// 是否有效
        /// </summary>
        public virtual int is_valid { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public virtual DateTime create_date { get; set; }
        #endregion
    }
}
